import 'package:sample2/model/chat/message.dart';

class ChatGroupMessage extends ChatMessage {
  late String groupId;

  ChatGroupMessage({
    required this.groupId,
    required String message,
    required String createTime,
    required ChatMessageSenderReceiverType messageType,
    String? messageId,
    String? from,
    String? toUser,
  }) : super(
            messageSenderReceiverType: messageType,
            message: message,
            createTime: createTime,
            messageId: messageId,
            from: from,
            toUser: toUser);

  ChatGroupMessage.fromJsonMap(Map jsonMap) : super.fromJsonMap(jsonMap) {
    groupId = jsonMap["groupId"];
  }
}
